package main
import "fmt"
import "os"
import "gopkg.in/ini.v1"


func main(){
	cfg, err := ini.Load("table.ini")
    if err != nil {
        fmt.Printf("Fail to read file: %v", err)
        os.Exit(1)
    }
    m := map[string]string{
        "log_time":"hello",
    }
    
	comon_keys := cfg.Section("common").KeyStrings()
    login_keys := cfg.Section("login").KeyStrings()
    list := make([]string, len(comon_keys)+len(login_keys))
    copy(list,comon_keys) 
    copy(list[len(comon_keys):],login_keys)  
    for _,req := range list{
        fmt.Println("key",req,m[req])
    }
}